home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 6
/
CU Amiga Magazine's Super CD-ROM 06 (1996)(EMAP Images)(GB)(Track 1 of 4)[!][issue 1997-01].iso
/
imagine
/
extras
/
objects
/
animflare
/
lensflare.doc
< prev
next >
Wrap
Text File
|
1994-03-20
|
2KB
|
73 lines
I have just downloaded the lens flare object from Aminet
(gfx/3dobj/Flare.lha). This object have been created by Cryto with the
technics given in the Amazing Computing article (Feb94). It looks ok,
but it is not the lens flare I was expecting, so I made some
modifications to make is useable in an animation.
In a lens flare, the rings are following a line that point to the light
source and pass thru the center of the screen (just watch a Gun's and
Roses video, there are more of thoses artifacts than in a LightWave
animation!).
The first thing I made was deleting the two rings in the object. Then,
I created an object that consist of disks of different sizes. Each of
those disks have a radial texture so they are fully transparent at the
center and semi-transparent on the edge, with a pale blue-purple color.
Those disks are then placed on a line that follow the Y axis:
Top View:
----------------------
----
----------------
y
|
+-x <---- parent Axis
---------------------
--------
----------------
Y
|
+- X
Note: All disks X and Z cordinates are identical.
Now, I added an axis in the center and grouped all the disks to that
axis. For the Lightsource, I added an axis far in front of the star
object and made it the parent with it's Y axis pointing in the direction
of the star.
In the anim, the star object is placed in all frame in the same position
as the camera with tracking on the light source. The camera track the
disks object and the disk object track the light source. Make sure that
the star and rings are in front of every other object in all frames.
Et voila: Animated lens flare. The light source may move normaly. If
the camera move, the rings object must always be kept at the same
distance from the camera. To change alignement of the camera, you have
to move the rings object.
I will upload some images (jpeg) from an animation with the staging and
all the objects to aminet soon. Watch for AnimFlare.lha. The animation
show a sunset from space where the rings fade in and out as the light
come closer to the center of the screen and the star disapear behind the
planet. You will also get, as a free gift, an object of the planet
Mars.
Patrick Sauvageau
sauvp00@dmi.usherb.ca
(Please forgive my bad english; it's not my native language)